//
//  RMMNotNetWorkView.m
//  Romomo
//
//  Created by puman on 2017/2/22.
//  Copyright © 2017年 mazegong. All rights reserved.
//

#import "RMMNotNetWorkView.h"

@implementation RMMNotNetWorkView

- (instancetype)initWithFrame:(CGRect)frame{
    if ([super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(15, 50, kScreenWideth - 30, 40)];
        label.font = kFont(14);
        label.numberOfLines = 0;
        label.textColor = COLORFROMCODE(0x9B9B9B, 1);
        label.textAlignment = NSTextAlignmentCenter;
        label.text = @"亲,您的网络链接好像有点问题啊,请您检查一下啊亲";
        [self addSubview:label];
        
        _button = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _button.frame = CGRectMake((kScreenWideth - 100) / 2.0, label.bottom + kMaric, 100, 30);
        _button.layer.cornerRadius = 15;
        _button.backgroundColor = kBasicColor;
        _button.titleLabel.font = kFont(14);
        [_button setTitle:@"刷新" forState:(UIControlStateNormal)];
        [self addSubview:_button];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
